package com.guoqing.example;

import lombok.extern.slf4j.Slf4j;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

@Slf4j
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
public class ActivityApplication {

    /**
     * SpringBoot整合Activiti工作流（附源码）
     * https://blog.csdn.net/chendasheng/article/details/103813700
     * @param args
     */

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ActivityApplication.class);
        ConfigurableEnvironment environment = run.getEnvironment();
        log.info(" \n http://localhost:{} ", environment.getProperty("server.port"));
    }

}
